<!DOCTYPE html>
<html>
  <head>
    <title>主界面</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
      <%- include header%>
      <br>
      <% if(!name){ %>
        <div>
          <a href="/login">登录</a>
          <a href="/register">注册</a>
        </div>
      <% }else{ %>
        <div>
          欢迎你:<%= name %>
          <a href="/logout">注销</a>
          <a href="/comment">评论</a>
        </div>
      <% } %>
          <br>
      <%- include footer%>

      <img src="/images/face.jpg" alt="">
  </body>
</html>
